﻿using System;
using System.Collections.Generic;

namespace TopHero
{
    public class MonsterIdleState : Singleton<MonsterIdleState>, State<Monster>
    {
        public void Enter(Monster monster)
        {
        }

        public void Execute(Monster monster)
        {
        }

        public void Exit(Monster monster)
        {
        }

        public bool OnMessage(Monster monster, Telegram msg)
        {
            if (msg.msg == MessageType.EnterBattle)
            {
                monster.stateMachine.ChangeState(MonsterBattleState.Instance);
                return true;
            }
            
            return false;
        }
    }
}